<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<div class="middle padtop10 myclear">
	<div class="page-content">
		
		<!-- bread crumb -->
		<p id="bread-crumb">
			<a href="<?php echo base_url();?>">
				<?php echo $lang['home'];?>
			</a>
			<a href="<?php echo site_url('monitor/adsOnlineMonitoring');?>">
				<?php echo $lang['online_ads_monitoring'];?>
			</a>
			<a href="<?php echo site_url('monitor/campaignInQueueMonitoring');?>">
				<?php echo $campaignname;?>
			</a>
			<?php echo $lang['online_campaign_inqueue_banners_monioring'];?>
		</p>
		<!-- end bread crumb -->
		<h3>
			<?php echo $lang['online_campaign_inqueue_banners_monioring'];?>
		</h3>
		<br>
		<div>
			<span>Tổng số banner: <b><?php echo $records;?></b></span>
			<table cellpadding="0" cellspacing="0" width="100%" border="1" class="martop10 tbl-list">
			<tr>
				<td class="td-label text-center"><strong>ID</strong></td>
				<td class="td-label"><strong>Ảnh</strong></td>
				<td class="td-label"><strong>Tiêu đề</strong></td>
				<td class="td-label"><strong>Ngày bắt đầu</strong></td>
				<td class="td-label"><strong>Ngày kết thúc</strong></td>
				<td class="td-label"><strong>Nhóm</strong></td>
				<td class="td-label text-right"><strong>Tiền</strong></td>
				<td class="td-label text-center"><strong>ZoneID</strong></td>
				<td class="td-label"><strong>Tên Zone</strong></td>
			</tr>
			<?php $i = 1; foreach ($rows as $item){?>
			<tr>
				<td class="text-center"><?php echo $item->bannerid;?></td>
				<td><img src="<?php echo $item->filename;?>" border="0" /></td>
				<td><?php echo $item->bannername;?></td>
				<td><?php echo $item->activate;?></td>
				<td><?php echo $item->expire;?></td>
				<td>
					<?php echo ($item->typegroup == 1 ? 'Nội bộ' : 'Khách hàng'); ?>
				</td>
				<td class="text-right"><?php echo number_format($item->money);?></td>
				<td class="text-center"><?php echo $item->zoneid;?></td>
				<td><?php echo $item->zonename;?></td>
			</tr>
			<?php $i++; }?>
			<tr>
				<td class="td-label text-right" colspan="9">
					<?php echo $page_link;?>
				</td>
			</tr>
		</table>
		</div>
	</div>
</div>
<br><br>